%{
# include <stdio.h>
# include "parse.tab.h"
extern int yylex();
%}

%token INT STRING SEMI INTEGER PLUS

%%

Start: StartList
     | Start StartList
     ;

StartList: INT STRING SEMI
	{printf("vardef  %s inttype",$2);}
	 | INTEGER PLUS INTEGER
	{printf("plus\n  %d\n  %d\n",$1,$3);}
	 ;

%%

void yyerror(char *s, ...){
  printf("yyerror\n");
}
